package com.font.bean;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * (Dili)表实体类
 *
 * @author makejava
 * @since 2023-08-04 20:06:50
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("dili")
public class DiliResult {
    //位置key@TableId
    private String dKey;

//    //经度
//    private String dJing;
//    //纬度
//    private String dWei;
    private List<Double> wei;
//    String[] lations = new String[2];
    //名称
    private String dName;
    private String picUrl;
    private  String land;
    //顺序
    private Integer dAble;
    private Double disdance;
    public  void setList(Dili dili) {
         List<Double> lat=new ArrayList<>();
         lat.add(dili.getDJing());
         lat.add(dili.getDWei());
        this.dKey = dili.getDKey();
        this.dName=dili.getDName();
        this.dAble=dili.getDAble();
       this.wei=lat;
       this.disdance=dili.getDisdance();
       this.picUrl=dili.getPicUrl();
       this.land=dili.getLand();
    }
}
